<meta charset="utf-8">
<?php
$result = RequestData('buildings');
?>
<ul class="menu" >
	<br>
		<center>
			<li><a href="index.php?page=Uebersicht">&Uuml;bersicht</a></li>
			<li><a href="index.php?page=Truppen">Truppen</a></li>
			<li><a href="index.php?page=Taktik">Taktik</a></li>
			<li><a href="index.php?page=Radar">Radar</a></li>
			<li><a href="index.php?page=Lager">Lager</a></li>
			<br/>
			<li><a href="index.php?page=Gebaeude">Geb&aumlude</a></li>
			<li><a href="index.php?page=Verteidigung">Verteidigung</a></li>
			<?php
			if($result['Labor'] > 0){ echo '<li><a href="index.php?page=Forschung">Forschung</a></li>'; }
			if($result['Kaserne'] > 0){ echo '<li><a href="index.php?page=Kaserne">Kaserne</a></li>'; }
			if($result['Fahrzeug'] > 0){ echo '<li><a href="index.php?page=Fahrzeug">Fahrzeugfabrik</a></li>'; }
			if($result['Hangar'] > 0){ echo '<li><a href="index.php?page=Hangar">Hangar</a></li>'; }
			if($result['Waffen'] > 0){ echo '<li><a href="index.php?page=Waffen">Waffenfabrik</a></li>'; }
			?>
			<br/>
			<li><a href="index.php?page=Union">Union-B&oumlrse</a></li>
			<li><a href="index.php?page=Koma">Fliegender H&auml;ndler</a></li>
			<br/>
			<li><a href="index.php?page=Allianz">Allianz</a></li>
			<li><a href="index.php?page=Buddys">Buddys</a></li>
			<br/>
			<li><a href="index.php?page=Nachrichten">Nachrichten <?php CheckMessages(); ?></a></li>
			<li><a href="index.php?page=Notizen">Notizen</a></li>
			<li><a href="index.php?page=Statistik">Statistik</a></li>
			<li><a href="index.php?page=Einstellungen">Einstellungen</a></li>
			<li><a href="index.php?page=Logout">Logout</a></li>
			
		</center>
	</br>
</ul>
<?php
switch($_GET['page'])
{
	case "Uebersicht": require_once("template/uebersicht.php"); break;
	case "Truppen": require_once("template/truppen.php"); break;
	case "Taktik": require_once("template/Taktik.php");	break;
	case "Radar": require_once("template/Radar.php"); break;
	case "Lager": require_once("template/lager.php"); break;
	case "Gebaeude": require_once("template/building.php"); break;
	case "Forschung": require_once("template/forschung.php"); break;
	case "Verteidigung": require_once("template/defense.php"); break;
	case "Kaserne": require_once("template/kaserne.php"); break;
	case "Fahrzeug": require_once("template/fahrzeug.php"); break;
	case "Hangar": require_once("template/hangar.php"); break;
	case "Waffen": require_once("template/waffen.php"); break;
	case "Union": require_once("template/union.php"); break;
	case "Koma": require_once("template/koma.php"); break;
	case "Allianz":	require_once("template/allianz.php"); break;
	case "Buddys":	require_once("template/buddys.php"); break;
	case "Nachrichten": require_once("template/message.php"); break;
	case "Notizen":	require_once("template/notes.php"); break;
	case "Statistik": require_once("template/stats.php"); break;
	case "Einstellungen": require_once("template/settings.php"); break;
	case "Logout":	require_once("template/logout.php"); break;
	case "NoteEdit": require_once("template/notes_edit.php"); break;
	case "MsgEdit": require_once("template/msg_edit.php"); break;
	default: require_once("template/uebersicht.php"); break;
}
?>